package org.coding.springbootdemowebmvc.config;

import org.springframework.beans.factory.FactoryBean;

/**
 * @auth guoxh
 * @date 2020/10/17 4:28 下午
 * @desc
 **/
public class UserServiceAnnontationFactoryBean implements FactoryBean<AppUserService> {
    public UserServiceAnnontationFactoryBean() {
    }

    @Override
    public AppUserService getObject() throws Exception {
        return new AppUserService();
    }

    @Override
    public Class<?> getObjectType() {
        return AppUserService.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
